class CreateNetworksRoomsJoinTable < ActiveRecord::Migration
  def self.up
    create_table :networks_rooms, :id => false do |t|
      t.references :network, :room # Pour créer les clés etrangères
    end
    add_index :networks_rooms, [:network_id, :room_id] # Optionnel
  end

  def self.down
    drop_table :networks_rooms
  end
end
